package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whw.fy.config.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-whw-fy-entity-Pay")
@Data
public class Pay {
    /**
     * 缴费记录id
     */
    @ApiModelProperty(value = "缴费记录id")
    private String payId;

    /**
     * 家长id
     */
    @ApiModelProperty(value = "家长id")
    private Integer parentId;

    /**
     * 被缴费学生id
     */
    @ApiModelProperty(value = "被缴费学生id")
    private Integer studentId;

    /**
     * 收费财务id
     */
    @ApiModelProperty(value = "收费财务id")
    private Integer staffId;

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id")
    private Integer lessonId;

    /**
     * 课时数量
     */
    @ApiModelProperty(value = "课时数量")
    private Integer classHours;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    /**
     * 小计
     */
    @ApiModelProperty(value = "小计")
    private BigDecimal paySubtotal;

    /**
     * 缴费类别
     */
    @ApiModelProperty(value = "缴费类别")
    private Integer payType;

    /**
     * 缴费时间
     */
    @ApiModelProperty(value = "缴费时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date payTime;

    @Transient
    @IgnoreSwaggerParameter
    private Parent parent;

    @Transient
    @IgnoreSwaggerParameter
    private Student student;

    @Transient
    @IgnoreSwaggerParameter
    private Lesson lesson;
}